package com.wenhai.spring.aop.features;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * AspectJ 演示
 *
 * @author wenhai
 * @date   2021/3/4
 */
@Aspect
@Configuration
public class AspectJXMLDemo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:/META-INF/spring-aop-context.xml");
        ctx.refresh();
        System.out.println(ctx.getBean(AspectJXMLDemo.class).getClass().getName());
        ctx.close();
    }

}
